import request from '@/utils/request'

// 承租方列表
export const tenantPageList = (params) => {
  return request({
    method: 'get',
    url: '/system/renter/list',
    params: params,
  })
}
// 新增承租方
export const tenantAdd = (params) => {
  return request({
    method: 'post',
    url: '/system/renter/add',
    data: params,
  })
}
// 更新承租方
export const tenantUpdate = (params) => {
  return request({
    method: 'put',
    url: `/system/renter/update`,
    data: params,
  })
}
// 删除承租方
export const tenantDelete = (params) => {
  return request({
    method: 'delete',
    url: '/system/renter/delete',
    params: params,
  })
}
// 承租方详情
export const tenantDetail = (params) => {
  return request({
    method: 'get',
    url: '/system/renter/get',
    params: params,
  })
}
